package com.lonelyzhe.springboot.service.impl;

import com.lonelyzhe.springboot.bean.Category;
import com.lonelyzhe.springboot.mapper.CategoryMapper;
import com.lonelyzhe.springboot.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryService implements ICategoryService {
    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> selectCategoryList() {
        return categoryMapper.getCategoryList();
    }

    @Override
    public void insertCategory(Category category) {
        categoryMapper.insertCategory(category);
    }
}
